package com.itzgyw.example.entity;

import com.itzgyw.cache.annotation.Element;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Auther: Mr. Zeng
 * @Date: 2020/12/8 17:34
 * @Description: 暂无描述
 */
@Data
@Accessors(chain = true)
@Entity
@Table(name = "tb_user")
@DynamicUpdate
@DynamicInsert
@Element(value = "http:data", reloadMethodName = "findById", reloadBeanName = "userService")
public class User implements IdEntity, Serializable {

    @Id
    @Column(name = "id")
    private Integer id;
    @Column(name = "username")
    private String username;
    @Column(name = "remarks", columnDefinition = "text comment '描述信息'")
    private String remarks;


}
